
    <script charset="utf-8" src="@{'/public/javascripts/edit_tools/kindeditor-4.0.1/kindeditor-min.js'}"></script>
    <script charset="utf-8" src="@{'/public/javascripts/edit_tools/kindeditor-4.0.1/lang/zh_CN.js'}"></script>
	<script type="text/javascript">
		var editor;
		KindEditor.ready(function(K) {
			editor = K.create('textarea[id="advDet"]', {
				resizeType : 2,
				allowPreviewEmoticons : false,
				allowImageUpload : false,
				items : [
					'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
					'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
					'insertunorderedlist', '|', 'emoticons', 'image', 'link','table','map','|','source','fullscreen' ]
			});
		});
		function editor_add_html(txt){
			// 取得HTML内容
			var htmlX = editor.html();
			// 设置HTML内容
			//editor.html( htmlX + "<br>" + txt );
			//将指定的HTML内容添加到编辑区域的最后位置。
			//editor.appendHtml(txt);
			//插入内容
			editor.insertHtml(txt);
		}
	</script>


<form action="@{create()}" method="post">
	     #{if flash.success}
	       <p><font color="red">${flash.success}</font></p>
	     #{/if}
           <p>广告标题：<input type="text" name="advert.advTit">
                      <input type="hidden" name="adpId" value=${id}>
           </p>
           <p>广告代码：<input type="text" name="advert.advCode"></p>
           <p>链接：<input type="text" name="advert.advHref"></p>
           <p>排序：<input type="text" name="advert.advDesc"></p>
           <p>广告详情：</p>
           <p>
              <textarea rows="10" cols="70" name="advert.advDet" id="advDet"></textarea> 
           </p>
           <p>
             <input type="submit" value="添加">
           </p>
</form>












